package com.example.demo.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; 

/**
 * 
 * @author Administrator
 *
 */
@Data
@ApiModel
@Api(tags = "菜单")
@TableName("base_menu")
public class MenuEntity  extends Model<MenuEntity> implements Serializable {

	private static final long serialVersionUID=1L;
	
	//菜单id
	@TableId(type = IdType.UUID)
	@ApiModelProperty(value = "菜单名称", name = "菜单名称" , hidden = true)
	private String id;
	
	//菜单名称
	@ApiModelProperty(value = "菜单名称", name = "菜单名称")
	private String name;
	
	//描述
	@ApiModelProperty(value = "描述", name = "描述")
	private String description;	
	
	//创建人
	@ApiModelProperty(value = "创建人", name = "创建人")
	private String createBy;
	
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
	@ApiModelProperty(value = "创建时间", name = "创建时间")
	private Date createDate;	
	
}
